# -*- coding: utf-8 -*-
# @Time    : 2024/8/30 下午7:53
# @Author  : wb
# @Email   : wb@163.com
# @File    : marking_add_template
# @Software: PyCharm

from time import sleep
from pages.wb_base_page import BasePage
from selenium.webdriver.common.by import By
class MarkingMessagePage(BasePage):
    url = '/crm'
    # 定位器

    # 获取发送邮件按钮元素
    send_post_locator = (By.CSS_SELECTOR, 'body > div.container > div.page-header > ul > li:nth-child(3) > a')
    # 获取邮件模版设置按钮元素
    template_setting_locator = (By.CSS_SELECTOR,'body > div.container > div.row > div:nth-child(2) > form > div > div:nth-child(2) > p > a:nth-child(4)')
    #浏览器操作
    def click_send_post(self):
        # 点击发送邮件
        self.driver.find_element(*self.send_post_locator).click()
        sleep(2)
    def click_post_template_seeting(self):
        # 点击邮件模板设置
        self.driver.find_element(*self.template_setting_locator).click()








